package models

import "github.com/goravel/framework/database/orm"

type SysOperateLog struct {
	orm.Model
	UserId        int64  `json:"user_id"`
	RequestMethod string `json:"request_method"`
	Url           string `json:"url"`
	Extra         string `json:"extra"`
	Success       int    `json:"success"`
	Ip            string `json:"ip"`
	UserAgent     string `json:"user_agent"`
}

func NewSysOperateLog() *SysOperateLog {
	return new(SysOperateLog)
}

func (SysOperateLog) TableName() string {
	return "sys_operate_log"
}
